package Thread;

public class Demo14 {
    private static Object ob = new Object();
    public static void main(String[] args) throws InterruptedException {

        synchronized (ob){
            ob.wait();
        }
        System.out.println("wait结束");
    }
}
